package sh.wn36.vehiclemanage.entity.qz_entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;


@Data
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "InspectionRecord对象", description = "")
public class InspectionRecordList implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer carId;

    private String insNo;

    @DateTimeFormat(pattern = "yyyy-MM-dd")  //-- 入参格式化
    @JsonFormat(timezone = "GMT+8" ,pattern = "yyyy-MM-dd")   //-- 出参格式化  JackSon包 。不是SpringBoot
    private Date insDate;

    private Double insAmount;

    private Integer vaoId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")  //-- 入参格式化
    @JsonFormat(timezone = "GMT+8" ,pattern = "yyyy-MM-dd")   //-- 出参格式化  JackSon包 。不是SpringBoot
    private Date expireDate;

    private Integer operator;

    private String remarks;

    private String unitName;

    private String carNo;

    private String name;

}
